﻿@model Project3.Models.Meeting

@{
    ViewBag.Title = "Edit";
}

<h2>Edit Meeting</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>

        @Html.HiddenFor(model => model.MeetingID)

        <div class="editor-label">
            <strong>Title: </strong>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EventName)
            @Html.ValidationMessageFor(model => model.EventName)
        </div>

        <div class="editor-label">
            <strong>What: </strong>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.What)
            @Html.ValidationMessageFor(model => model.What)
        </div>

        <div class="editor-label">
            <strong>When: </strong>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.When)
            @Html.ValidationMessageFor(model => model.When)
        </div>

        <@*div class="editor-label">
            <strong>Where: </strong>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Where)
            @Html.ValidationMessageFor(model => model.Where)
        </div>*@

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<p>
    @Html.ActionLink("Back to Meeting Page", "Details", new { id=Model.MeetingID }) 
</p>